package com.tao.extend_.exercise;

public class Computer {
    private String cpu;
    private int memory;
    private int disk;
    public Computer(String cpu,int memory, int disk){
        this.cpu = cpu;
        this.memory = memory;
        this.disk = disk;
    }

    public String getDetils(){
        return "该电脑的CPU是" + cpu + " 内存是" + memory + " 硬盘是" + disk;
    }

    public String getCpu() {
        return cpu;
    }

    public void setCpu(String cpu) {
        this.cpu = cpu;
    }

    public int getMemory() {
        return memory;
    }

    public void setMemory(int memory) {
        this.memory = memory;
    }

    public int getDisk() {
        return disk;
    }

    public void setDisk(int disk) {
        this.disk = disk;
    }


}
